Optimal. Leaf size=126 \[ \frac {3 i \text {Li}_2\left (-e^{i (a+b x)}\right )}{2 b^2}-\frac {3 i \text {Li}_2\left (e^{i (a+b x)}\right )}{2 b^2}-\frac {\csc (a+b x)}{2 b^2}-\frac {\tanh ^{-1}(\sin (a+b x))}{b^2}+\frac {3 x \sec (a+b x)}{2 b}-\frac {3 x \tanh ^{-1}\left (e^{i (a+b x)}\right )}{b}-\frac {x \csc ^2(a+b x) \sec (a+b x)}{2 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.17, antiderivative size = 126, normalized size of antiderivative = 1.00, number of steps used = 13, number of rules used = 12, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.667, Rules used = {2622, 288, 321, 207, 4420, 6271, 12, 4183, 2279, 2391, 3770, 2621} \[ \frac {3 i \text {PolyLog}\left (2,-e^{i (a+b x)}\right )}{2 b^2}-\frac {3 i \text {PolyLog}\left (2,e^{i (a+b x)}\right )}{2 b^2}-\frac {\csc (a+b x)}{2 b^2}-\frac {\tanh ^{-1}(\sin (a+b x))}{b^2}+\frac {3 x \sec (a+b x)}{2 b}-\frac {3 x \tanh ^{-1}\left (e^{i (a+b x)}\right )}{b}-\frac {x \csc ^2(a+b x) \sec (a+b x)}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 207
Rule 288
Rule 321
Rule 2279
Rule 2391
Rule 2621
Rule 2622
Rule 3770
Rule 4183
Rule 4420
Rule 6271
Rubi steps
\begin {align*} \int x \csc ^3(a+b x) \sec ^2(a+b x) \, dx &=-\frac {3 x \tanh ^{-1}(\cos (a+b x))}{2 b}+\frac {3 x \sec (a+b x)}{2 b}-\frac {x \csc ^2(a+b x) \sec (a+b x)}{2 b}-\int \left (-\frac {3 \tanh ^{-1}(\cos (a+b x))}{2 b}+\frac {3 \sec (a+b x)}{2 b}-\frac {\csc ^2(a+b x) \sec (a+b x)}{2 b}\right ) \, dx\\ &=-\frac {3 x \tanh ^{-1}(\cos (a+b x))}{2 b}+\frac {3 x \sec (a+b x)}{2 b}-\frac {x \csc ^2(a+b x) \sec (a+b x)}{2 b}+\frac {\int \csc ^2(a+b x) \sec (a+b x) \, dx}{2 b}+\frac {3 \int \tanh ^{-1}(\cos (a+b x)) \, dx}{2 b}-\frac {3 \int \sec (a+b x) \, dx}{2 b}\\ &=-\frac {3 \tanh ^{-1}(\sin (a+b x))}{2 b^2}+\frac {3 x \sec (a+b x)}{2 b}-\frac {x \csc ^2(a+b x) \sec (a+b x)}{2 b}-\frac {\operatorname {Subst}\left (\int \frac {x^2}{-1+x^2} \, dx,x,\csc (a+b x)\right )}{2 b^2}+\frac {3 \int b x \csc (a+b x) \, dx}{2 b}\\ &=-\frac {3 \tanh ^{-1}(\sin (a+b x))}{2 b^2}-\frac {\csc (a+b x)}{2 b^2}+\frac {3 x \sec (a+b x)}{2 b}-\frac {x \csc ^2(a+b x) \sec (a+b x)}{2 b}+\frac {3}{2} \int x \csc (a+b x) \, dx-\frac {\operatorname {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,\csc (a+b x)\right )}{2 b^2}\\ &=-\frac {3 x \tanh ^{-1}\left (e^{i (a+b x)}\right )}{b}-\frac {\tanh ^{-1}(\sin (a+b x))}{b^2}-\frac {\csc (a+b x)}{2 b^2}+\frac {3 x \sec (a+b x)}{2 b}-\frac {x \csc ^2(a+b x) \sec (a+b x)}{2 b}-\frac {3 \int \log \left (1-e^{i (a+b x)}\right ) \, dx}{2 b}+\frac {3 \int \log \left (1+e^{i (a+b x)}\right ) \, dx}{2 b}\\ &=-\frac {3 x \tanh ^{-1}\left (e^{i (a+b x)}\right )}{b}-\frac {\tanh ^{-1}(\sin (a+b x))}{b^2}-\frac {\csc (a+b x)}{2 b^2}+\frac {3 x \sec (a+b x)}{2 b}-\frac {x \csc ^2(a+b x) \sec (a+b x)}{2 b}+\frac {(3 i) \operatorname {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^{i (a+b x)}\right )}{2 b^2}-\frac {(3 i) \operatorname {Subst}\left (\int \frac {\log (1+x)}{x} \, dx,x,e^{i (a+b x)}\right )}{2 b^2}\\ &=-\frac {3 x \tanh ^{-1}\left (e^{i (a+b x)}\right )}{b}-\frac {\tanh ^{-1}(\sin (a+b x))}{b^2}-\frac {\csc (a+b x)}{2 b^2}+\frac {3 i \text {Li}_2\left (-e^{i (a+b x)}\right )}{2 b^2}-\frac {3 i \text {Li}_2\left (e^{i (a+b x)}\right )}{2 b^2}+\frac {3 x \sec (a+b x)}{2 b}-\frac {x \csc ^2(a+b x) \sec (a+b x)}{2 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 2.41, size = 282, normalized size = 2.24 \[ \frac {12 i \left (\text {Li}_2\left (-e^{i (a+b x)}\right )-\text {Li}_2\left (e^{i (a+b x)}\right )\right )+12 (a+b x) \left (\log \left (1-e^{i (a+b x)}\right )-\log \left (1+e^{i (a+b x)}\right )\right )-2 \tan \left (\frac {1}{2} (a+b x)\right )-2 \cot \left (\frac {1}{2} (a+b x)\right )-b x \csc ^2\left (\frac {1}{2} (a+b x)\right )+b x \sec ^2\left (\frac {1}{2} (a+b x)\right )-12 a \log \left (\tan \left (\frac {1}{2} (a+b x)\right )\right )+\frac {8 b x \sin \left (\frac {1}{2} (a+b x)\right )}{\cos \left (\frac {1}{2} (a+b x)\right )-\sin \left (\frac {1}{2} (a+b x)\right )}-\frac {8 b x \sin \left (\frac {1}{2} (a+b x)\right )}{\sin \left (\frac {1}{2} (a+b x)\right )+\cos \left (\frac {1}{2} (a+b x)\right )}+8 \log \left (\cos \left (\frac {1}{2} (a+b x)\right )-\sin \left (\frac {1}{2} (a+b x)\right )\right )-8 \log \left (\sin \left (\frac {1}{2} (a+b x)\right )+\cos \left (\frac {1}{2} (a+b x)\right )\right )+8 b x}{8 b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.51, size = 527, normalized size = 4.18 \[ \frac {6 \, b x \cos \left (b x + a\right )^{2} - 4 \, b x + {\left (-3 i \, \cos \left (b x + a\right )^{3} + 3 i \, \cos \left (b x + a\right )\right )} {\rm Li}_2\left (\cos \left (b x + a\right ) + i \, \sin \left (b x + a\right )\right ) + {\left (3 i \, \cos \left (b x + a\right )^{3} - 3 i \, \cos \left (b x + a\right )\right )} {\rm Li}_2\left (\cos \left (b x + a\right ) - i \, \sin \left (b x + a\right )\right ) + {\left (-3 i \, \cos \left (b x + a\right )^{3} + 3 i \, \cos \left (b x + a\right )\right )} {\rm Li}_2\left (-\cos \left (b x + a\right ) + i \, \sin \left (b x + a\right )\right ) + {\left (3 i \, \cos \left (b x + a\right )^{3} - 3 i \, \cos \left (b x + a\right )\right )} {\rm Li}_2\left (-\cos \left (b x + a\right ) - i \, \sin \left (b x + a\right )\right ) - 3 \, {\left (b x \cos \left (b x + a\right )^{3} - b x \cos \left (b x + a\right )\right )} \log \left (\cos \left (b x + a\right ) + i \, \sin \left (b x + a\right ) + 1\right ) - 3 \, {\left (b x \cos \left (b x + a\right )^{3} - b x \cos \left (b x + a\right )\right )} \log \left (\cos \left (b x + a\right ) - i \, \sin \left (b x + a\right ) + 1\right ) - 3 \, {\left (a \cos \left (b x + a\right )^{3} - a \cos \left (b x + a\right )\right )} \log \left (-\frac {1}{2} \, \cos \left (b x + a\right ) + \frac {1}{2} i \, \sin \left (b x + a\right ) + \frac {1}{2}\right ) - 3 \, {\left (a \cos \left (b x + a\right )^{3} - a \cos \left (b x + a\right )\right )} \log \left (-\frac {1}{2} \, \cos \left (b x + a\right ) - \frac {1}{2} i \, \sin \left (b x + a\right ) + \frac {1}{2}\right ) + 3 \, {\left ({\left (b x + a\right )} \cos \left (b x + a\right )^{3} - {\left (b x + a\right )} \cos \left (b x + a\right )\right )} \log \left (-\cos \left (b x + a\right ) + i \, \sin \left (b x + a\right ) + 1\right ) + 3 \, {\left ({\left (b x + a\right )} \cos \left (b x + a\right )^{3} - {\left (b x + a\right )} \cos \left (b x + a\right )\right )} \log \left (-\cos \left (b x + a\right ) - i \, \sin \left (b x + a\right ) + 1\right ) - 2 \, {\left (\cos \left (b x + a\right )^{3} - \cos \left (b x + a\right )\right )} \log \left (\sin \left (b x + a\right ) + 1\right ) + 2 \, {\left (\cos \left (b x + a\right )^{3} - \cos \left (b x + a\right )\right )} \log \left (-\sin \left (b x + a\right ) + 1\right ) + 2 \, \cos \left (b x + a\right ) \sin \left (b x + a\right )}{4 \, {\left (b^{2} \cos \left (b x + a\right )^{3} - b^{2} \cos \left (b x + a\right )\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int x \csc \left (b x + a\right )^{3} \sec \left (b x + a\right )^{2}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.14, size = 182, normalized size = 1.44 \[ \frac {3 b x \,{\mathrm e}^{5 i \left (b x +a \right )}-2 b x \,{\mathrm e}^{3 i \left (b x +a \right )}-i {\mathrm e}^{5 i \left (b x +a \right )}+3 b x \,{\mathrm e}^{i \left (b x +a \right )}+i {\mathrm e}^{i \left (b x +a \right )}}{b^{2} \left ({\mathrm e}^{2 i \left (b x +a \right )}-1\right )^{2} \left (1+{\mathrm e}^{2 i \left (b x +a \right )}\right )}-\frac {3 a \ln \left ({\mathrm e}^{i \left (b x +a \right )}-1\right )}{2 b^{2}}+\frac {2 i \arctan \left ({\mathrm e}^{i \left (b x +a \right )}\right )}{b^{2}}+\frac {3 i \dilog \left ({\mathrm e}^{i \left (b x +a \right )}\right )}{2 b^{2}}+\frac {3 i \dilog \left ({\mathrm e}^{i \left (b x +a \right )}+1\right )}{2 b^{2}}-\frac {3 \ln \left ({\mathrm e}^{i \left (b x +a \right )}+1\right ) x}{2 b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.69, size = 1184, normalized size = 9.40 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {x}{{\cos \left (a+b\,x\right )}^2\,{\sin \left (a+b\,x\right )}^3} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int x \csc ^{3}{\left (a + b x \right )} \sec ^{2}{\left (a + b x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________